import os
import toml

# 配置读取
currentPath = os.path.abspath(os.path.dirname(__file__))
confLib = os.path.join(currentPath, 'conf')
baseConfPath = os.path.join(confLib, 'baseConf.toml')
apisConfPath = os.path.join(confLib, 'apisConf.toml')
baseConfig = toml.load(baseConfPath)
apisConfig = toml.load(apisConfPath)


####################
#   1. Gpos
#   2. ZY
#   3. ???
#
#
####################
def selectBusiness():
    businessMap = {
        1 : "Gpos",
        2 : "ZY"
    }
    scan = input("""
                 1. Gpos
                 2. ZY
                 3. ...
                 \n""")
    return businessMap[int(scan)]


####################
#   1. sandbox
#   2. pre
#   3. onl
#   
####################
def selectBusinessEnv():
    businessEnvMap = {
        1 : "sandbox",
        2 : "pre",
        3 : "onl"
    }
    scan = input("""
                 1. sandbox
                 2. pre
                 3. onl
                 \n""")
    return businessEnvMap[int(scan)]

